<header class="main-header" data-7512a93d>
    <div class="left-header">
        <div @click="menuClose" class="sidebar-collapse">
            <i :class="isCollapse ? 'el-icon-s-unfold' : 'el-icon-s-fold'"></i>
        </div>
    </div>

    <div class="right-header">
        <div class="functional-areas">
            <div class="theme">
                <el-button size="small" type="text" @click="window.open('/')" style="font-size: 14px;font-weight: 500;margin-right: 10px">
                    <i class="fa fa-home" style="font-size: 14px"></i> 访问前台
                </el-button>
            </div>
        </div>
        <div class="functional-areas">
            <div class="theme">
                <el-dropdown placement="top" @command="themeCommandEvent">
                    <span class="el-dropdown-link" title="">
                        <svg class="icon svg-icon" aria-hidden="true">
                            <use xlink:href="#icon-tiaoseban-copy"></use>
                        </svg>
                    </span>
                    <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item command="index">雅黑</el-dropdown-item>
                        <el-dropdown-item command="purple">妖紫</el-dropdown-item>
                        <el-dropdown-item command="blue">鲸蓝</el-dropdown-item>
                    </el-dropdown-menu>
                </el-dropdown>
            </div>
        </div>

        <el-dropdown @command="handleCommand">
            <span class="el-dropdown-link">
                <img src="/statics/v1/images/icon/headimg_02.png" class="head-image">{{auth ()->guard ('admin')->check() ? auth ()->guard ('admin')->user()->name :''}}<i class="el-icon-arrow-down el-icon--right"></i>
            </span>
            <el-dropdown-menu slot="dropdown">
                <el-dropdown-item icon="el-icon-user-solid" command="center">个人中心</el-dropdown-item>
                <el-dropdown-item icon="el-icon-brush" command="clear_cache">清除缓存</el-dropdown-item>
                <el-dropdown-item icon="el-icon-switch-button" command="logout" divided>退出登录</el-dropdown-item>
            </el-dropdown-menu>
        </el-dropdown>
    </div>

</header>